/**
 * @param {number[]} candies
 * @param {number} extraCandies
 * @return {boolean[]}
 */
var kidsWithCandies = function(candies, extraCandies) {
    let n=Math.max.apply(null,candies)
    let m=Math.max(...candies)
    let len=candies.length
    let ans=[]
    for(let i=0;i<len;i++){
        ans.push(candies[i]+extraCandies>=m)
    }
    return ans
};